package com.example.rule.action;


import com.example.rule.core.Action;

import java.math.BigDecimal;

/**
 * @author Jason - Chusifeng
 * @version 1.0.0
 * @ClassName CashAction.java
 * @PackageName com\welab\vb\payment\transaction\rule\action\CashAction.java
 * @Description 直接指定现金动作的action
 * @createTime 2022年10月10日 11:04:11
 */
public class CashAction implements Action {

    private BigDecimal cash;

    public CashAction(BigDecimal cash) {
        this.cash = cash;
    }

    @Override
    public BigDecimal execute(com.example.rule.core.Facts facts) throws Exception {
        return this.cash;
    }
}
